<template>
  <div class="p-4">
    <BasicTable @register="tableRegister" />
  </div>
</template>

<script lang="ts" setup>
  import { BasicTable, useTable } from '/@/components/Table';

  import { columns, getFormConfig } from './schema';
  import { getList } from './api';

  const [tableRegister] = useTable({
    title: '日志列表',
    columns: columns,
    api: getList,
    rowKey: 'id',
    showTableSetting: true,
    useSearchForm: true,
    formConfig: getFormConfig(),
    handleSearchInfoFn: (searchInfo) => {
      return searchInfo;
    },
  });
</script>

<style scoped></style>
